﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.PageModel;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_RepaircostBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Repaircost;

        void Remove(IDr_Repaircost entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Repaircost;
        /// <summary>
        /// 获取比选方案
        /// </summary>
        /// <param name="proj_Id"></param>
        /// <returns></returns>
        IComparePlanModel GetComparePlan(string proj_Id);
        /// <summary>
        /// 分析期费用保存
        /// </summary>
        /// <param name="model"></param>
        void SaveAnalyCost(IComparePlanModel model);
        /// <summary>
        /// 获取分析期维修策略及费用
        /// </summary>
        /// <param name="proj_Id"></param>
        /// <returns></returns>
        dynamic GetRepairCost(string proj_Id);
    }
}
